<?php
class widget_contact extends CWidget {

  // public $contacts;
  public function run() {
    // $this->render('widget_contact');

    $contacts = Contact::model()->getContacts(2);
    $this->render('widget_contact', array(
      'contacts' => $contacts
    ));

  }
}
?>